home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3978 < prev    next >
Encoding:
Text File  |  1996-08-05  |  928 b   |  23 lines

  1. Newsgroups: comp.lang.c
  2. Path: news.ner.bbnplanet.net!daprez!panther!otisg
  3. From: otisg@panther.middlebury.edu (Otis Gospodnetic)
  4. Subject: Re: What does the -O option do?
  5. Message-ID: <11f7cc$172b1b.26b@daprez>
  6. Date: Thu, 01 Feb 1996 04:43:27 GMT
  7. References: <4eh2ve$4u2@mark.ucdavis.edu>
  8. X-Newsreader: TIN [version 1.2 PL2]
  9.  
  10. Ricardo E Espinoza-Ibarra (espinoza@cs.ucdavis.edu) wrote:
  11. > Does anyone know what the -O option in gcc C compiler does?  I have tried to compile a program in two different ways: 1) cc -o first first.c, and it worksfine; 2) cc -o first first.c -O, and it runs faster than the other one.  I checked to see if it had changed the program code in anyway, and it hadn't.
  12. > This option stands for "optimizer", but I want to know how the heck it
  13. optimizes the program!  Please respond as soon as possible. 
  14.  
  15.  
  16. reorganizes the code, I think...
  17.  
  18. Otis
  19. --
  20. If you are serious, love can be dangerous......
  21.                             INXS
  22.  
  23.